﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Data.Mapping
{
    public partial class TokenTaskMallShoppingMap
        : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<TokenTaskMallShopping>
    {
        public TokenTaskMallShoppingMap()
        {
            ToTable("mc_TokenTaskMallShopping", "dbo");

            HasKey(t => t.Id);
            Property(t => t.Id)
                .HasColumnName("Id")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
                .IsRequired();

            Property(p => p.RowVersion).IsRowVersion();

        }
    }
}
